package com.czxy.demo01;

import java.util.Scanner;

/**
 * Created by hp on 2020/1/30.
 */
public class Test02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数代表月份，范围1-12");
        int i = sc.nextInt();
        switch (i){
            case 3:;
            case 4:;
            case 5:;
                System.out.println(i+"月份是春季");
                break;
            case 6:;
            case 7:;
            case 8:;
                System.out.println(i+"月份是夏季");
                break;
            case 9:;
            case 10:;
            case 11:;
                System.out.println(i+"月份是秋季");
                break;
            case 12:;
            case 1:;
            case 2:;
                System.out.println(i+"月份是冬季");
                break;
        }
    }
}
